/*   1:    */ package com.atomikos.icatch.imp;
/*   2:    */ 
/*   3:    */ import com.atomikos.icatch.HeurCommitException;
/*   4:    */ import com.atomikos.icatch.HeurHazardException;
/*   5:    */ import com.atomikos.icatch.HeurMixedException;
/*   6:    */ import com.atomikos.icatch.HeurRollbackException;
/*   7:    */ import com.atomikos.icatch.HeuristicMessage;
/*   8:    */ import com.atomikos.icatch.RollbackException;
/*   9:    */ import com.atomikos.icatch.SysException;
/*  10:    */ import com.atomikos.icatch.TxState;
/*  11:    */ 
/*  12:    */ class TerminatedStateHandler
/*  13:    */   extends CoordinatorStateHandler
/*  14:    */ {
/*  15:    */   TerminatedStateHandler(CoordinatorImp coordinator)
/*  16:    */   {
/*  17: 48 */     super(coordinator);
/*  18:    */   }
/*  19:    */   
/*  20:    */   TerminatedStateHandler(CoordinatorStateHandler previous)
/*  21:    */   {
/*  22: 53 */     super(previous);
/*  23:    */     
/*  24: 55 */     dispose();
/*  25:    */   }
/*  26:    */   
/*  27:    */   protected Object getState()
/*  28:    */   {
/*  29: 60 */     return TxState.TERMINATED;
/*  30:    */   }
/*  31:    */   
/*  32:    */   protected void onTimeout() {}
/*  33:    */   
/*  34:    */   protected void setGlobalSiblingCount(int count) {}
/*  35:    */   
/*  36:    */   protected int prepare()
/*  37:    */     throws RollbackException, IllegalStateException, HeurHazardException, HeurMixedException, SysException
/*  38:    */   {
/*  39: 83 */     return 0;
/*  40:    */   }
/*  41:    */   
/*  42:    */   protected HeuristicMessage[] commit(boolean onePhase)
/*  43:    */     throws HeurRollbackException, HeurMixedException, HeurHazardException, IllegalStateException, RollbackException, SysException
/*  44:    */   {
/*  45: 92 */     if (!onePhase) {
/*  46: 96 */       return getHeuristicMessages();
/*  47:    */     }
/*  48:112 */     throw new RollbackException("Transaction was rolled back.");
/*  49:    */   }
/*  50:    */   
/*  51:    */   protected HeuristicMessage[] rollback()
/*  52:    */     throws HeurCommitException, HeurMixedException, SysException, HeurHazardException, IllegalStateException
/*  53:    */   {
/*  54:122 */     return getHeuristicMessages();
/*  55:    */   }
/*  56:    */   
/*  57:    */   protected void forget() {}
/*  58:    */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions\3.7.0\transactions-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.imp.TerminatedStateHandler
 * JD-Core Version:    0.7.0.1
 */